#ifndef _BOARD_IO_H
#define _BOARD_IO_H
#include "public.h"
#include "sys.h"

#define PB1   PBout(1)
#define PB0   PBout(0)
#define PA7   PAout(7)
#define PA6   PAout(6)
#define PA5   PAout(5)
#define PA4   PAout(4)
#define PA3   PAout(3)

#define RELAY1  PB1
#define RELAY2  PB0
#define RELAY3  PA7
#define RELAY4  PA6
#define RELAY5  PA5
#define RELAY6  PA4
#define RELAY7  PA3

#define DIN1   PAin(15)
#define DIN2   PBin(3)
#define DIN3   PBin(4)
#define DIN4   PBin(5)
#define DIN5   PBin(6)
#define DIN6   PBin(7)
#define DIN7   PBin(8)
#define DIN8   PBin(9)


void init_ctrl_boardIO(void);

#endif









